export function hasLogin() {
  return Boolean(localStorage.getItem("token"));
}

export function setLogin() {
  localStorage.setItem("token", "abc");
}

export function setLogout() {
  localStorage.removeItem("token");
}

(window as any).setLogin = setLogin;
(window as any).setLogout = setLogout;
